<?php
/**
 * Created by PhpStorm.
 * User: xianshaofeng
 * Date: 2018/7/24
 * Time: 16:48
 */

namespace app\api\controller;


use think\Request;

class Games extends Base
{

    /**
     * 初始化接口
     */
    public function game_init(Request $request){
        $data=$request->param();
        return  ['data'=>$data,'code'=>0,'t'=>1, 'a'=>1];

    }

    /**
     *
     * 游戏开始
     */
    public  function game_start(){
        $res=array([
            'code'=>0
        ]);

        return  ['code'=>0];


    }

    /**
     * 游戏结束
     *
     */
    public  function  game_end(){
        $res=array([
            'code'=>0
        ]);

        return  ['code'=>0];


    }

    /**
     * 数据统计
     */
    public  function  game_stat(){
        $res=array([
            'code'=>0
        ]);

        return  ['code'=>0];


    }


}